package Problem;



import java.math.BigDecimal;
import java.util.Scanner;

//
// Created by ✎﹏ℳ๓独赏☆独醉 on 2024/1/22.
// 
public class 求成绩 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int max=0,min=100,sum=0 ,stuNum,temp;
        stuNum = scan.nextInt();
        for (int i = 0; i < stuNum; i++) {
            temp = scan.nextInt();
            sum+=temp;
            max = max > temp ? max : temp;
            min = min > temp ? temp : min;
        }
        double ave = (double) sum/stuNum;
        System.out.println(max);
        System.out.println(min);
        System.out.printf("%.2f",ave);
    }
}
